import uniRequest from '../../static/libs/uni.request.js';
// 获取资讯列表
export const schoolList = (data) => {
	return uniRequest.get(`/schoolInfo/info/list`, {
		params: data
	});
}
// 通过Id获取资讯详情（可匿名访问）
export const schoolInfo = (data) => {
	return uniRequest.get(`/schoolInfo/info/${data}`);
}
// 查询热门活动，可匿名访问 
export const activity = (data) => {
	return uniRequest.get(`/activity/activity/list`, {
		params: data
	});
}
// 根据id获取热门活动，可匿名访问
export const activityId = (data) => {
	return uniRequest.get(`/activity/activity/${data}`);
}
// 获取用户个人信息
export const Getprofile = (data) => {
	return uniRequest.get(`/system/user/profile`);
}
// 获取学校列表
export const Getschools = (data,val) => {
	return uniRequest.get(`/data/schools/${val}`, {
		params: data
	});
}
//  获取专业树表,支持匿名访问
export const getMajor = (data) => {
	return uniRequest.get(`/data/getMajor`, {
		params: data
	});
}
//  获取专业树表,支持匿名访问 
export const schoolMain = (data) => {
	return uniRequest.get(`/data/schoolMain/${data}`);
}
// 知识库列表
export const Getdocument = (data) => {
	return uniRequest.get(`/wechat_document/document/list`, {
		params: data
	});
}
// 知识库详情
export const DetailDocument = (data) => {
	return uniRequest.get(`/wechat_document/document/${data}`);
}
// 专业库详情
export const Getmajors = (data) => {
	return uniRequest.get(`data/majorMain/${data}`);
}

// 调取支付接口
export const GetPayAi = (data) => {
	return uniRequest.post(`/api/wx/pay/v3/payAi`, data);
}

// 导师列表
export const mentorsList = () => {
	return uniRequest.get(`/mentors/mentors/list`);
}

// 生成报告
export const getReport = (data) => {
	return uniRequest.get(`/data/getReport/${data}`);
}

// 海外国家列表
export const countries = (data) => {
	return uniRequest.get(`/system/countries/list`);
}
// 我的订单列表
export const orderList = (data) => {
	return uniRequest.get(`/wechat_order/order/list`,{
		params: data
	});
}
// 获取视频列表
export const getvedio = (data) => {
	return uniRequest.get(`/vedio/vedio/list`);
}
// 获取视频详情
export const vedio = (data) => {
	return uniRequest.get(`/vedio/vedio/${data}`);
}